﻿<div class="map">
    <div class="mapik">
        <p>
            <%= ViewStrings.EventsStrings.City %></p>
        <p>
            <%= Html.TextBox("city", null, new { size = "20" })%>
            <input type="button" value="Search" onclick="getCities()" /></p>
        <p>
            <select id="citiesListBox" size="5" disabled="disabled" class="option_city" onchange="changeCity()">
                <option value="noSelection">
                    <%= ViewStrings.EventsStrings.EnterCityName %></option>
            </select>
            <label>
                <b>*</b> <%= ViewStrings.EventsStrings.RequiredField %></label></p>
        <p>
            <p class="m"> 
                <%= ViewStrings.EventsStrings.ObjectsTypes %>
                <a href="#" class="dotted" onclick="updateObjects(); return false;">
                    <%= ViewStrings.EventsStrings.UpdateObjects %></a></p>
            <select id="objectsTypesListBox" size="5" disabled="disabled" class="option_city" onchange="changeObjectsType()">
                <option value="noSelection">
                    <%= ViewStrings.EventsStrings.UpdateObjectsFirst %></option>
            </select>
            <label for="map">
                <b>**</b> <%= ViewStrings.EventsStrings.OnlyСurrentMapViewObjectsAreLoaded %></label></p>
        <p>
            <p class="m">
                <%= ViewStrings.EventsStrings.Objects %></p>
            <select id="objectsListBox" size="5" class="option_city" onchange="changeObject()">
                <option value="noSelection">
                    <%= ViewStrings.EventsStrings.ChooseObjectType %>
                </option>
            </select></p>
        <p>
            <p class="m">
                <%= ViewStrings.EventsStrings.Label %></p>
            <input type="text" id="label" size="30" /></p>
        <p>
            <input type="button" value="<%= ViewStrings.EventsStrings.Choose %>" id="chooseLocationButton"
                disabled="disabled" class="fo6" onclick="chooseLocation()" /></p>
    </div>
    <div class="maper">
        <div id="map" style="width: 500px; height: 500px">
        </div>
        <script type="text/javascript">
            var cloudmade = new CM.Tiles.CloudMade.Web({ key: 'e409c885a1a040bf86cb2c1430838e49' });
            var map = new CM.Map('map', cloudmade);
            map.setCenter(new CM.LatLng(0, 0), 0);

            map.addControl(new CM.LargeMapControl());
            map.addControl(new CM.ScaleControl());

            var bottomLeft = new CM.ControlPosition(CM.BOTTOM_LEFT, new CM.Size(50, 20));
            map.addControl(new CM.OverviewMapControl(), bottomLeft);
        </script>
    </div>
</div>
<script type="text/javascript">
    resetCitiesListBox();
</script>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>